<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<!DOCTYPE html >
<html>
<head>
<title>茂业运营服务支撑平台 后台管理系统</title>
<meta name="decorator" content="moduleEdit" />
<style type="text/css">
</style>
<script type="text/javascript" src="${staticPath}/js/brand.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#supplierUserForm").validate({
			 rules: {
				 email:{
					 email:true
				 },
				 organizationCode:{
					 organization:true
				 }
			 },
			submitHandler: function(form){
				if($("#password2").val() != $("#password").val())
				{
					top.$.jBox.tip('两次密码不一致！','warning');
					return;
				}
				Oosp_Loading('正在提交，请稍等...');
				form.submit();
			},
			errorContainer: "#messageBox",
			errorPlacement: function(error, element) {
				$("#messageBox").text("输入有误，请先更正。");
				if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
					error.appendTo(element.parent().parent());
				} else {
					error.insertAfter(element);
				}
			}
		});
	});
</script>
</head>
<body>
		<header>
	    	<div class="container">
			  <div class="navbar-header">
			    <a class="navbar-brand" href="#" style="padding-bottom: 10px;"><img alt="" src="${staticPath}/images/logo_1.png">&nbsp;&nbsp;</a>
			  </div>
			</div>
                 	<div class="container login_pic">
                    	<div class="col-sm-7 ">
                           <div class="login_pic_1"><img src="${staticPath}/images/login_pic1.png" class="img-responsive" alt="Responsive image"></div>
                        </div> 
                            <form:form id="supplierUserForm" name="supplierUserForm"  modelAttribute="supplier" action="${contextPath}/biz/brand/supplierUser/register" method="post" class="form-signin" role="form">
                        	<div class="col-sm-5 form_bg">
                                <div class="login_text_1">供应商账号注册</div>
                                <div class="form-group form_1">
                                <label class="control-label"> 填写账户信息</label>(以下信息均为必填)
                                </div>
                                <div class="form-group form_1">
                                	供应商类型(百货正式、百货临时、综超)：<ossp:select dictType="supplierType" defaultSelected="1" value="${ supplier.supplierType}" name="supplierType" id="supplierType" class_="form-control form_2 required"></ossp:select>
                         		</div>
                         		<div class="form-group form_1">
                                                                                     账号名称: <input type="text" id="username" name="username" class="form-control form_2" placeholder="账&nbsp;号" required autofocus >
                                </div>
                                <div class="form-group form_1">
                               	    设置密码：  <input type="password" id="password" name="password" class="form-control form_2" placeholder="设置密码" required >
                                </div>
                                <div class="form-group form_1">
                   				  确认密码：  <input type="password" id="password2" name="password2" class="form-control form_2" placeholder="确认密码" required >
                                </div>
                                <div class="form-group form_1">
                                     	E-mail地址：<input type="text" id="email" name="email" class="form-control form_2" placeholder="E-mail地址" required autofocus >
                                </div>
                                 <div class="form-group form_1">
                                     	公司名称：<input type="text" id="cname"  name="cname" class="form-control form_2" placeholder="公司名称" required autofocus >
                                </div>
                                <div class="form-group form_1">
                                    	组织机构代码: <input type="text" id="organizationCode"  name="organizationCode" class="form-control form_2" placeholder="组织机构代码" required autofocus >
                                </div>
                                <c:if test="${!empty msg}">
                                	<div class="login_text_2"><c:out value="${msg}"/></div>
                                </c:if>
                                <div class="form_1">
                                     <button type="submit" class="btn_2 btn-block btn_2_red">注&nbsp;&nbsp;册</button>
                                </div>
                            </div>
                       </form:form>
                    </div>
            <div class="container">
            	 <div class="copyright">
                      <P><span class="icon_2 icon"></span>TAG标签： <a href="http://www.maoye.cn/" target="_blank">茂业百货</a><a href="http://www.moyscm.com/scm/" target="_blank">茂业百货供应商商务服务平台</a></p>
                      <P>版权所有 © 茂業國際控股有限公司<span class="a_0078b6"><A href="#">粤ICP备07033766号</A></span>站长统计</p>
                 </div>
            </div>
		</header>
</body>
</html>